package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author changyu.gui
 * @version 1.0
 * @date 2020/5/19 17:50
 */
@Data
@NoArgsConstructor
@ApiModel(value = "产品方案还款数据表")
@TableName("product_update_repay")
public class ProductUpdateRepay extends BaseEntity<ProductUpdateRepay> {
    /**
     * 产品方案id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productUpdateId;
    /**
     * 还款方式
     */
    private String repaymentMethod;
    /**
     * 还款方式数据;保存json
     */
    private String repaymentMethodData;

    public ProductUpdateRepay(ProductUpdateRepay method) {
        this.productUpdateId = method.productUpdateId;
        this.repaymentMethod = method.repaymentMethod;
        this.repaymentMethodData = method.repaymentMethodData;
    }
}
